package com.rinlink.jbcodec.transform;


import java.nio.ByteBuffer;

public abstract class BytesToObject<T> implements Transform<T> {

    private ByteBuffer byteBuffer;

    public BytesToObject(byte[] array){
        this.byteBuffer = ByteBuffer.wrap(array);
    }

    public BytesToObject(ByteBuffer byteBuffer)   {
        this.byteBuffer = byteBuffer;
    }

    public ByteBuffer getByteBuffer() {
        return byteBuffer;
    }

}
